Platform Explorer / Nuxeo Platform 2023.22

Operation Context.SetVar (Set Context Variable)

Description

Set a context variable given a name and the value. To compute the value at runtime from the current context you should use an EL expression as the value. This operation works on any input type and return back the input as the output.
Operation id Context.SetVar
Category Execution Context
Label Set Context Variable
Requires
Since

Parameters

Name Description Type Required Default value
name string yes  
value object no  

Signature

Inputs void
Outputs void

Implementation Information

Implementation Class Class: org.nuxeo.ecm.automation.core.operations.SetVar
Contributing Component org.nuxeo.ecm.core.automation.coreContrib

JSON Definition

{
  "id" : "Context.SetVar",
  "label" : "Set Context Variable",
  "category" : "Execution Context",
  "requires" : null,
  "description" : "Set a context variable given a name and the value. To compute the value at runtime from the current context you should use an EL expression as the value. This operation works on any input type and return back the input as the output.",
  "url" : "Context.SetVar",
  "signature" : [ "void", "void" ],
  "params" : [ {
    "name" : "name",
    "description" : null,
    "type" : "string",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "value",
    "description" : null,
    "type" : "object",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}